;;; appearance.cfg.el --- Summary
;;; Commentary:
;;; appearance configuration
;;; Code:

(require 'package.cfg)

(global-font-lock-mode t)
(set-default 'show-trailing-whitespace t)
(global-set-key (kbd "C-c w") 'whitespace-mode)
;; fill-column influences how Emacs justifies paragraphs
(setq-default fill-column 79)
;; show both line and column number by default
(setq column-number-mode t)
(setq line-number-mode t)
;; spaces instead of tabs
(setq-default indent-tabs-mode nil)
(setq tab-width 4)
;; Turn beep off
(setq visible-bell nil)
;; Ask for 'y or n'
(fset 'yes-or-no-p 'y-or-n-p)

;; Don't open a dedicated frame for ediff even in X but
;; place it at the bottom.
(setq ediff-window-setup-function 'ediff-setup-windows-plain
      ediff-split-window-function 'split-window-horizontally)

(package-install-if-absent 'darcula-theme)
(load-theme 'darcula t)

(package-install-if-absent 'smart-mode-line)
(use-package smart-mode-line
  :init
  (setq sml/theme 'dark)
  (sml/setup))

;; Override theme font.
(condition-case nil
    (set-frame-font "M+ 2m:pixelsize=16:foundry=unknown:weight=normal:slant=normal:width=normal:spacing=90:scalable=true" nil t)
  (error (message "Could not set M+ as frame font. Is it installed?")))

(use-package diminish
  :config
  (diminish 'visual-line-mode))

(provide 'appearance.cfg)
;;; appearance.cfg.el ends here
